<?php if (count($pages) > 1):?>
<!-- Pages -->
<div class="col c12 pages">
	<div class="p_container">
	<h4><?php echo $view->lang->get('forum')->get('page')?> <?php echo $curPage+1?> of <?php echo count($pages)?>:</h4>
	
	<?php if ($curPage != 0): ?>
		<a href="<?php echo $view->url->linkTo('Forum',$method, array_merge($args, array('page' => ($curPage-1)  ) ))?>">&laquo;</a>
	<?php endif; ?>
	<?php foreach($pages as $l => $title): ?>
		<?php $link = $view->url->linkTo('Forum',$method, array_merge($args, array('page' => $l) ))?>
		<?php if ($curPage == $l):?>
		<span><?php echo $title?></span>	
		<?php else:?>
		<a href="<?php echo $link?>"><?php echo $title?></a>
		<?php endif; ?>
	<?php endforeach;?>
	<?php if ($curPage != (count($pages)-1)): ?>
		<a href="<?php echo $view->url->linkTo('Forum',$method, array_merge($args, array('page' => $curPage+1) ))?>">&raquo;</a>
	<?php endif; ?>
	
	
	</div>
</div>
<!-- Pages end -->

<?php endif;?>